from fastapi import FastAPI
from fastapi.staticfiles import StaticFiles

from conf import variable
from routers import security, views, tree, report, admin, dcmlist

# uvicorn main:app --host 0.0.0.0 --port 8000 --reload
# uvicorn main:app --host 127.0.0.1 --port 6767 --reload
app = FastAPI()

app.mount(f'{variable.CONTEXT_PATH}/static', StaticFiles(directory="resources/static/"))

app.include_router(report.router)
app.include_router(admin.router)
app.include_router(dcmlist.router)
app.include_router(security.router)
app.include_router(tree.router)
app.include_router(views.router)
